package com.dean.batch.service.impl;

import com.dean.batch.entity.SysBatchJob;
import com.dean.batch.service.DeanBatchJobService;

import java.util.Map;

/**
 * @ClassName BatchImpl2
 * @Description batch2
 * @Author dean
 * @Date 2021/12/16 15:15
 */
public class BatchImpl4 extends DeanBatchJobService {
    /**
     * 执行批量任务
     *
     * @param batchJob
     */
    @Override
    public void execute(SysBatchJob batchJob) {
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(batchJob.getJobId()+"执行了");
    }
}
